<c:url var="urlRejoindrePartie" value="rejoindrePartie.html" />
<div class="row">
	<div class="hero-unit diavolo arrondi">
    	<div class="page-header">
					<h1>Rejoindre une partie : </h1>
		</div>
		
	<c:set var="emptyList" value="true" scope="page" />
	
	<table class="tableStyle"> 
  		<c:forEach var="partie" items="${liste}">
			<c:set var="emptyList" value="false" scope="page" />
  			<tr> 
 				<td> 
 					<form method="post" action="${urlRejoindrePartie}">
						<span>${partie.nom}</span> 
						<input type="hidden" name="partie_id" value="${partie.id}" />
						<input type="submit" value="Rejoindre" />
					</form> 
				</td> 				
			</tr>
		</c:forEach>
	</table>
	
		<c:if test="${emptyList}">
			<li>Aucune partie</li>
		</c:if>

	</div>
</div>
